﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class MainEventScript : MonoBehaviour
{

    public Button m_cButton;
    public Text m_cOutText;
    public Text m_cInputText;


    // Use this for initialization
    void Start()
    {
        m_cButton.onClick.AddListener(() =>
        {
            m_cOutText.text = m_cInputText.text;
            TcpConnect.g_Instance.SendMessageToServer(m_cOutText.text);
            Debug.Log("OnClick");

            //LuaClient.Instance.OnGameInput(0, 2);
        });

    }

    // Update is called once per frame
    void Update()
    {
        //LuaClient.Instance.OnGameUpdate(Time.deltaTime);
    }
}
